package lkj.service.user.Impl;

import lkj.dao.user.UserDao;
import lkj.domain.user.User;
import lkj.service.user.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lkj10 on 2017/3/12.
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;
    @Override
    public List<User> findAllUser() {
        return userDao.findAllUser();
    }

    @Override
    public User findId(Integer uid) {
        return userDao.findId(uid);
    }

    @Override
    public void delete(User user) {
        userDao.delete(user);
    }
}
